﻿namespace AgileBoard.Infrastructure.Data.Repositories
{
    using System.Collections.Generic;
    using Domain;
    using Domain.DataInterfaces;
    using SharpArch.Data.NHibernate;

    public class LabelRepository : Repository<Label>, ILabelRepository
    {
        #region ILabelRepository Members

        public IList<Label> FindByIteration(string iterationId)
        {
            return Session.CreateQuery("from Label where IterationID = :iterationId")
                .SetParameter("iterationId", iterationId)
                .List<Label>();
        }

        #endregion
    }
}